Builder

public final class Builder

A builder of Color.

Builders are created by invoking newBuilder. Each of the setter methods modifies the state of the builder and returns the same instance. Builders are not thread-safe and should not be used concurrently from multiple threads without external synchronization.

Functions

Link copied to clipboard
public Color.Builder alpha(float alpha)
Sets the alpha channel value in the 0..1 range.
Link copied to clipboard
public Color.Builder blue(float blue)
Sets the blue channel value in the 0..1 range.
Link copied to clipboard
public Color build()
Returns a new com.teamdev.jxbrowser.ui.internal.rpc.Color instance built from the current state of this builder.
Link copied to clipboard
public Color.Builder green(float green)
Sets the green channel value in the 0..1 range.
Link copied to clipboard
public Color.Builder red(float red)
Sets the red channel value in the 0..1 range.